package com.yanh.seckill.feign;

import com.yanh.jcommon.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value ="product")
public interface ProductFeignClient {

    /**
     * 查询sku信息
     * @return
     */
    @PostMapping("/product/skuinfo/list")
    R getSkuInfoList(@RequestBody List<Long> skuIds);

}
